import NotFound from "@/components/404.vue";
import Index from "@/views/index.vue";
import { createRouter, createWebHistory } from "vue-router";

const routes: any[] = [
  {
    path: "/index",
    redirect: "/",
  },
  { path: "/", component: Index },
  { path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound },
];

export default createRouter({
  history: createWebHistory(),
  routes,
});
